const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  user: state => state.user.user,
  areaList: state => (state.user.user.areaList || []),
  curArea: state => state.user.curArea,
  avatar: state => state.user.user.headImgUrl,
  name: state => state.user.user.realName,
  curPosition: state => state.user.curPosition,
  positions: state => (state.user.user.roles || []),
  // roles: state => (state.user.user.roles || []),
  permission_routes: state => state.permission.routes,
  addRoutes: state => state.permission.addRoutes,
  menuList: state => state.permission.menuList,
  dict: state => state.dict.dict,
  errorLogs: state => state.errorLog.logs
}
export default getters
